<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    const school = {
        name: '尚硅谷'
    }
    const cities = {
        xiaoqu: ['北京','上海','深圳']
    }
    // 设置给 school 原型对象加上 cities
    Object.setPrototypeOf(school, cities);
    // 获取 school 的原型对象
    console.log(Object.getPrototypeOf(school));
    console.log(school);
</script>
</html>